home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-04-24 | 2.9 KB | 61 lines | [TEXT/MPS ] |
- # File: AliasSourceServer
- #
- # Copyright Apple Computer, Inc. 1991-98
- # All rights reserved.
- #
- #
- # Scripts that have Projector commands within them can normally not be
- # executed by ToolServer. Using SourceServer, the RProj command, and three support
- # scripts (AliasSourceServer, UnaliasSourceServer, and Directory2), ToolServer
- # can perform Projector functions. SourceServer must be running on the same
- # computer as ToolServer before the Projector scripts can be executed.
- # Individual Projector command lines are sent from ToolServer to SourceServer
- # via AppleEvents by the RProj command. To allow RProj to automatically be invoked
- # any time a Projector command is encountered, we use the AliasSourceServer
- # script to alias each ProjectorCommand to "RProj ProjectorCommand". To make
- # sure that the aliases remain in effect even after the AliasSourceServer script
- # has finished running, we must use the command line, "Execute AliasSourceServer".
- # Directory commands also need to be aliased to Directory2, which will keep the
- # current directory of both ToolServer and SourceServer set to the same location
- # so both Projector and non-Projector commands operate on the same set of files.
- # This alias is also established by the AliasSourceServer script. Finally, after
- # completion of the Projector commands, "Execute UnaliasSourceServer" restores
- # ToolServer to it's normal operation.
- #
- # This file, AliasSourceServer, sets up aliases for ToolServer to reroute
- # Projector commands, via the RProj command, to SourceServer.
-
- Alias AuthorInfo "RProj AuthorInfo"
- Alias CheckIn "RProj CheckIn"
- Alias CheckOut "RProj CheckOut"
- Alias CheckOutDir "RProj CheckOutDir"
- Alias CompareRevisions "RProj CompareRevisions"
- Alias DeleteNames "RProj DeleteNames"
- Alias DeleteRevisions "RProj DeleteRevisions"
- Alias DuplicateNameRevisions "RProj DuplicateNameRevisions"
- Alias LockNameRevisions "RProj LockNameRevisions"
- Alias MergeBranch "RProj MergeBranch"
- Alias ModifyReadOnly "RProj ModifyReadOnly"
- Alias MountProject "RProj MountProject"
- Alias NameRevisions "RProj NameRevisions"
- Alias NewProject "RProj NewProject"
- Alias ObsoleteNameRevisions "RProj ObsoleteNameRevisions"
- Alias ObsoleteProjectorFile "RProj ObsoleteProjectorFile"
- Alias OrphanFiles "RProj OrphanFiles"
- Alias Project "RProj Project"
- Alias ProjectInfo "RProj ProjectInfo"
- Alias RenameProjectorFile "RProj RenameProjectorFile"
- Alias TransferCkid "RProj TransferCkid"
- Alias UnlockNameRevisions "RProj UnlockNameRevisions"
- Alias UnmountProject "RProj UnmountProject"
- Alias UnobsoleteNameRevisions "RProj UnobsoleteNameRevisions"
- Alias UnObsoleteProjectorFile "RProj UnObsoleteProjectorFile"
- Alias UpdateProjectorDatabase "RProj UpdateProjectorDatabase"
- Alias Directory "Directory2"
-
- # Finally, we synchronize the current directory settings between both ToolServer
- # and SourceServer by calling our newly aliased Directory command.
-
- Directory > Dev:Null
-
- # Now ToolServer is ready to execute any script containing Projector commands!